package com.GDOU.service;

import com.GDOU.bean.activity.Activity;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface ActivityService {

    /**
     * 保存
     * @param activity
     * @return
     */
    public boolean save(Activity activity);

    /**
     * 修改
     * @param activity
     * @return
     */
    public boolean update(Activity activity);

    /**
     * 按id删除
     * @param id
     * @return
     */
    public boolean delete(Integer id);

    /**
     * 按id查询
     * @param id
     * @return
     */
    public Activity getById(Integer id);

    /**
     * 查询全部
     * @return
     */
    public List<Activity> getAll();
}
